﻿#include "GangiaFeedDialog.h"

GangiaFeedDialog::GangiaFeedDialog( wxWindow* parent, int MaxFeedback):FeedDialog( parent )
{
	Feedbacks = MaxFeedback;
}
void GangiaFeedDialog::SetClassification(int Class)
{
	if(Class != 0) 
	{
		m_LastClass->SetLabel(wxString::Format(_("Last classification: %d"),Class));
	}
}

void GangiaFeedDialog::SetTrigger(int Man,int AEnima, int HW)
{
	if(Man!=0)m_HimTrigger->SetLabel(wxString::Format(_("HIM trigger:     %d"),Man));
	if(AEnima!=0)m_HWTrigger->SetLabel(wxString::Format(_("AEnima trigger:  %d"),AEnima));
	if(HW!=0)m_AEnimaTrigger->SetLabel(wxString::Format(_("HW trigger:      %d"),HW));
}

void GangiaFeedDialog::SetFeedback(float Feed[])
{
	switch(Feedbacks)
	{
	case 4:
		m_Feed4->SetValue(Feed[3]);
	case 3:
		m_Feed3->SetValue(Feed[2]);
	case 2:
		m_Feed2->SetValue(Feed[1]);
	case 1:
		m_Feed1->SetValue(Feed[0]);
		break;	
	}

}